package demo3;

public class Mouse implements IUSB{
    @Override
    public void openDecice() {
    //重写的时候 子类的访问修饰权限一定要大于等于父类的访问权限
        System.out.println("打开鼠标服务");
    }

    @Override
    public void closeDecice() {
        System.out.println("关闭鼠标服务");
    }
    public void click() {
        System.out.println("点击鼠标");
    }
}
